library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.numeric_std.all;

entity marsrover_tb is
end entity marsrover_tb;

architecture structural of marsrover_tb is

  component marsrover is

  port (
    clk : in std_logic;
    
    sensor_l : in std_logic;
    sensor_m : in std_logic;
    sensor_r : in std_logic;
    reset : in std_logic;
    
    motor_l : out std_logic; 
    motor_r : out std_logic
    
  );
  end component;

	signal	clk			: std_logic;
	signal	sensor_l			: std_logic;
	signal	sensor_m			: std_logic;
	signal	sensor_r			: std_logic;
	signal	reset		: std_logic;
	
	signal motor_l : std_logic;
	signal motor_r :  std_logic;
	
begin


lbl0:	marsrover	port map (	clk		=> clk,
					reset		=> reset,
					sensor_l => sensor_l,
					sensor_r => sensor_r,
					sensor_m => sensor_m,
					motor_l	=> motor_l,
					motor_r => motor_r
			);
			
			
			


lbl1: clk		<= 	'0' after 0 ns,
		   		'1' after 10 ns when clk /= '1' else
				'0' after 10 ns;
lbl2: reset <= '0' after 0 ns;
					sensor_l <= '0' after 0 ns;
					sensor_r <= '1' after 0 ns;
					sensor_m <= '1' after 0 ns;


	 --pwm_test <= '1' after 0 ns;
end architecture structural;






